package com.wdh.kjs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wdh.kjs.R;
import com.wdh.kjs.http.Httpurl;

/**
 * Created by CQH on 2016/4/21.
 */
public class RealNameAuthActivity extends BaseTopActivity implements View.OnClickListener {
    private Button exitLogin;
    private Intent intent;
    private LinearLayout realName_per;
    private LinearLayout realName_org;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.real_name_auth);
        initTopBar("实名认证");
        initview();
    }


    private void initview() {
        realName_per = (LinearLayout) findViewById(R.id.realName_per);
        realName_per.setOnClickListener(this);

        realName_org = (LinearLayout) findViewById(R.id.realName_org);
        realName_org.setOnClickListener(this);
    }

    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.realName_per:
                intent = new Intent(this, RealNameAuthPerActivity.class);
                intent.putExtra("URL", Httpurl.URL_REALAUTH_PER);
                startActivity(intent);
                break;
            case R.id.realName_org:
                intent = new Intent(this, RealNameAuthOrgActivity.class);
                intent.putExtra("URL", Httpurl.URL_REALAUTH_ORG);
                startActivity(intent);
                break;
        }
    }
}